package com.hardson.toolkit.security;

import java.security.cert.X509Certificate;

import javax.net.ssl.X509TrustManager;

/**
 * 忽略ssl中X509证书客户端认证管理
 *
 * @author hardson
 *
 */
public class UnSafeX509TrustManager implements X509TrustManager {
	@Override
	public void checkClientTrusted(X509Certificate[] chain, String authType) {
	}

	@Override
	public void checkServerTrusted(X509Certificate[] chain, String authType) {
	}

	@Override
	public X509Certificate[] getAcceptedIssuers() {
		return new X509Certificate[] {};
	}
}
